package one.stand.entity;

import lombok.Data;
import org.springframework.util.StringUtils;

import java.io.Serializable;

/**
 * 评论消息订阅
 */
@Data
public class WxCommentNoticeEntity implements Serializable {

    private String nickeName;
    private String text;
    private String crmFormId;
    private String crmOpenId;
    private String userOpenId;
    private String userFormId;
    private Integer cardId;
    private Integer companyId;
    private Integer userCompanyId;
    private Integer dynamicId;

    public String getNickeName() {
        return StringUtils.isEmpty(nickeName)?"":new String(java.util.Base64.getDecoder().decode(nickeName));
    }
}
